/**
 * BusinessFeature constuctor
 * @param {Type} Name 
 * @param {Type} FieldName 
 * @param {Type} Listed 
 * @param {Type} Order 
 * @param {Type} DataType 
 * @param {Type} ReferenceField 
 * @param {Type} Sorteable 
 */ 
function BusinessFeature(Name, FieldName, Listed, Order, DataType, ReferenceField, Sorteable) {
    this.Name = Name;
    this.FieldName = FieldName;
    this._listed = Listed;
    this.Order = Order;
    this.DataType = DataType;
    this.ReferenceField = ReferenceField;
    this.Sorteable = (Sorteable == 'yes' ? true : false);

    this.isListed = function () {
        if (this._listed != 1 && this._listed.toUpperCase().substring(0, 1) != "Y" && this._listed.toUpperCase().substring(0, 1) != "S")
            return false;
        return true;
    }
}